package com.nowcoder.community.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @ClassName ThreadPoolConfig
 * @Description
 * @Author hhwu
 * @Date 2022/6/1 16:48
 * Version 1.0
 **/
@Configuration
@EnableScheduling// 启用spring定时任务
@EnableAsync// 可以使用async注解启动定时任务（案例在test文件中）
public class ThreadPoolConfig {
}
